package cn.caskm.souvenirshopsystem.domain.po;

import cn.caskm.souvenirshopsystem.enums.StatusEnum;
import cn.caskm.souvenirshopsystem.utils.DateUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("admin_user")
public class AdminUser {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String userName;

    private String phone;

    private String password;

    private String salt;

    private StatusEnum status;

    private String avatar;

    @JsonFormat(pattern = DateUtils.DATE_TIME_FORMAT)
    private LocalDateTime createTime;

    @JsonFormat(pattern = DateUtils.DATE_TIME_FORMAT)
    private LocalDateTime updateTime;

}
